//
//  ApiConstant+Message.m
//  Message
//
//  Created by Fanty on 13-12-17.
//  Copyright (c) 2013年 Fanty. All rights reserved.
//

#import "ApiConstant+Message.h"
#import <ChamleonSDK/Library/UIDevice+IdentifierAddition.h>
@implementation ApiConstant(Message)


-(NSURL*)messageListURL{
    return [NSURL URLWithString:[NSString stringWithFormat:@"http://%@/push/api/push-msgs/none-receipts/%@/%@",self.serverURLHost,[[UIDevice currentDevice] uniqueDeviceIdentifier],self.appKey]];
}

-(NSURL*)receptURL{
    return [NSURL URLWithString:[NSString stringWithFormat:@"http://%@/push/api/receipts",self.serverURLHost]];
}

-(NSURL*)messageByIdURL:(NSString*)messageId{
    
    return [NSURL URLWithString:[NSString stringWithFormat:@"http://%@/push/api/push-msgs/%@/%@",self.serverURLHost,self.appKey,messageId]];


}
@end
